import java.util.LinkedList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—07—10
 * Time: 16:32
 */
public class Queue {
    public static void main(String[] args) {
        java.util.Queue<Integer> queue = new LinkedList<>();
        queue.offer(1);
        queue.offer(5);
        queue.offer(7);
        queue.offer(45);
        System.out.println(queue.size());
        System.out.println(queue.peek());
        queue.poll();
        System.out.println(queue.poll());
    }
}
